<include file="Admin/Public/Header" />
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
    <tr>
        <td height="31">
            <div class="titlebt">
                <if condition="I('get.do')=='add'">
                    添加幻灯片
                    <else />
                    修改幻灯片
                </if>
            </div>
        </td>
    </tr>
</table>

<div class="main">
    <div class="form">
        <php>$do = I('get.do');</php>
        <form method='post' id="form_do" name="form_do" enctype="multipart/form-data" action="{:U('Admin/Config/Pic', 'do='.$do)}">
            <dl>
                <dt> <span class="red">* </span>标题：</dt>
                <dd>
                    <input type="text" name="ad_title" class="inp_one" value="{$info.ad_title}" placeholder="" required/>
                </dd>
            </dl>

            <!--<dl>-->
                <!--<dt> <span class="red">* </span>所属栏目：</dt>-->
                <!--<dd>-->
                    <input type="hidden" name="ad_type"  class="inp_one" value="index" placeholder="" required/>
                <!--</dd>-->
            <!--</dl>-->

            <dl>
                <dt> 排序：</dt>
                <dd>
                    <input type="text" name="pic_sort"  class="inp_one" value="{$info.ad_sort}" placeholder="" />
                </dd>
            </dl>

            <dl>
                <dt> 链接地址：</dt>
                <dd>
                    <input type="text" name="pic_link"  class="inp_one" value="{$info.ad_url}" placeholder="" />
                </dd>
            </dl>
            <dl>
                <dt> 图片地址：</dt>
                <dd>
                    <input type="text" name="pic_name" style="display: none" /><input type="file" name="photo" />
                    <if condition="$info['ad_pic']"><div id="gallery" style="margin-left:140px;"><a class="photo" href="<php>echo 'http://'.$_SERVER['SERVER_NAME'];</php>/Application/Ucmaim/Uploads/{$info.ad_pic}"><img src="<php>echo 'http://'.$_SERVER['SERVER_NAME'];</php>/Application/Ucmaim/Uploads/{$info.ad_pic}" width="200" height="100"></a></div></if>
                </dd>
            </dl>
            <div class="form_b">
                <input type="hidden" name="pic_id" value="{$info.ad_id}">
                <input type="submit" class="btn_blue" id="submit" value="提 交">
            </div>
        </form>
    </div>
</div>
<script src="__ADMIN__/js/jquery.poptrox.min.js"></script>
<script>$(function(){$('#gallery').poptrox({usePopupCaption:true})});</script>
<include file="Admin/Public/Copyright" />